package com.zlx.module_base.sys_info;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * <li>项目名称:  dtcg
 * <li>归   类:
 * <li>类 描 述:
 * <li>创 建 人:  邹旭
 * <li>创建时间: 2019/4/3 10:39
 * <li>修 改 人:
 * <li>修改时间:
 * <li>修改备注:
 */
public class MenuEntity implements Serializable {
    public static final String TYPE_DONT_SHOW_WORKPACKAGE_CONTENT = "2";//"2":检修对象(作业项点) 列表，不展示作业包内容(比如"复检")
    //工单类型
    public static final String LCGD = "0";//流程工单

    //特别处理的菜单名
    public static final String SY = "试验";
    public static final String QY = "请验";
    public static final String YJ = "验交";
//    public static final String JT28HJ = "JT28互检";
//    public static final String JT28ZJ = "JT28专检";

    //JT28互检/JT6互检   JT28专检/JT6专检
    public static final String HJ = "互检";
    public static final String ZJ = "专检";


    /**
     * jdm : 机车整备范围活
     * jdid : c46ae061f21d4cd6a7d4d8196dd172e5
     * isjxzy : 1
     * wzxx : 0
     * jcfs : 专检
     * fsbm : b
     * gnmc : 机车整备范围活-专检
     */

    /**
     * 查询参数调整：
     * 查询日记录，的参数之一"jdid" -> "jdm"
     */
    public String jdm;//日计划查询，适用jdm
    public String jdid;
    public String isjxzy;//"0"：流程工单，"1"：工艺工单   "2":检修对象(作业项点) 列表，不展示"作业包内容" ("复检")("作业包模板")
    public int wzxx;//未做数量
    public int wzclsl;//未做车辆数量
    public String jcfs;
    public String fsbm;//方式编码(专检、他检 fsbm不为空)(值非空不能操作具体检查项)：
    public String gnmc;//菜单名称
    public String type;//菜单类型

    //通用模板参数
    @SerializedName("defineid")
    public String jddyid;//节点定义id
    @SerializedName("definename")
    public String lcdybm;//流程定义编码

    public boolean isGroup = false;
    public MenuEntity group ;//所属分组

    public MenuEntity() {
    }


    public MenuEntity(String gnmc) {
        this.gnmc = gnmc;
    }

    public MenuEntity(String gnmc,MenuEntity group) {
        this.gnmc = gnmc;
        this.group = group;
    }

    public MenuEntity(String gnmc, boolean isGroup) {
        this.gnmc = gnmc;
        this.isGroup = isGroup;
    }

    public void copyFrom(MenuEntity copySource) {
        this.jdm = copySource.jdm;
        this.jdid = copySource.jdid;
        this.isjxzy = copySource.isjxzy;
        this.wzxx = copySource.wzxx;
        this.wzclsl = copySource.wzclsl;
        this.jcfs = copySource.jcfs;
        this.fsbm = copySource.fsbm;
        this.type = copySource.type;

        this.jddyid = copySource.jddyid;
        this.lcdybm = copySource.lcdybm;

        //菜单名
        this.gnmc = copySource.gnmc;
    }
}
